<!-- 公文查询》跟踪 -->
<template>
	<van-list v-model="loading" :finished="finished" @load="load">
		<view class="check-container" v-for="item in docList">
			<view class="check-doc">
				<u-icon class="check-img" name="order" color="#2979ff" size="38"></u-icon>
				<text class="check-title">{{item.title}}</text>
				<view class="check-date">
					<u-icon class="check-img" name="eye-fill" color="#bcbcbc" size="38"></u-icon>
					<!-- <u-icon class="check-img" name="eye-off" color="#bcbcbc" size="38"></u-icon> -->
					<text>2020-12-01 17:21</text>
				</view>
			</view>
			<text class="check-status">公文状态：办理部门已批示</text>
			<view class="check-doc">
				<text class="check-type">公文类型：助办审核</text>
				<view class="check-btnbox">
					<van-button class="check-btn" color="#0066FF"  round type="primary" size="small">撤回</van-button>
				</view>
			</view>
			<u-line class="u-line"color="#F2F2F2"></u-line>
		</view>
	</van-list>
</template>

<script>
	export default {
		data() {
			return {
				
				docList: [{
						icon:'小图标',
						title: '民用航空空中交通通信导航监视设备使用许可目录',
						status: '注办中',
						types:'助力审核',
					},
					{
						ticon:'小图标',
						title: '民用航空空中交通通信导航监视设备使用许可目录',
						status: '注办中',
						types:'助力审核',
					},
					{
						icon:'小图标',
						title: '民用航空空中交通通信导航监视设备使用许可目录',
						status: '注办中',
						types:'助力审核',
					},
					{
						icon:'小图标',
						title: '民用航空空中交通通信导航监视设备使用许可目录',
						status: '注办中',
						types:'助力审核',
					},
					{
						icon:'小图标',
						title: '民用航空空中交通通信导航监视设备使用许可目录',
						status: '注办中',
						types:'助力审核',
					},
				],
				loading: true,
				finished: false,
			}
		},
		methods: {
			load() {
				// 异步更新数据
				// setTimeout 仅做示例，真实场景中一般为 ajax 请求
				setTimeout(() => {
					// for (let i = 0; i < 10; i++) {
					// 	this.newsList.push(this.newsList.length + 1);
					// }

					// 加载状态结束
					this.loading = false;

					// 数据全部加载完成
					if (this.docList.length >= 5) {
						this.finished = true;
					}
				}, 100);
			},
		},
	}
</script>

<style scoped>
	.check-container {
		background-color: #FFFFFF;
		padding: 0 30rpx;
	}

	.check-doc {
		display: flex;
		flex-direction: row;
		height: 90rpx;
		color: #999999;
		align-items: center;
	}

	.check-img {
		width: 10%;
		width: 40rpx;
		height: 40rpx;
	}

	.check-title {
		margin-left: 10rpx;
		width: 60%;
		line-height: 80rpx;
		font-size: 30rpx;
		color: #999999;
		white-space: nowrap;
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.check-date {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 40%;
		font-size: 20rpx;
	}
	.check-status{
		font-size: 24rpx;
		color: #999999;
	}
	.check-type {
		font-size: 24rpx;
		width: 80%;
	}

	.check-btnbox {
		width: 20%;
		text-align: center;
	}

	.check-btnbox .check-btn {
		width: 100rpx;
		height: 50rpx;
	}
	
	.u-line{
		margin: 0 30rpx !important;
	}
</style>
